
package cn.afterturn.oneopen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.afterturn.oneopen.model.OrgInfoModel;
import cn.afterturn.oneopen.repository.OrgInfoRepository;
import cn.afterturn.oneopen.service.IOrgInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 账户基本信息服务实现
 *
 * @author JueYue
 * @Date 2019-03-24 13:41:08
 */
@Service("orgInfoService")
public class OrgInfoServiceImpl extends ServiceImpl<OrgInfoRepository, OrgInfoModel> implements IOrgInfoService {

    private static final Logger LOGGER = LoggerFactory.getLogger(OrgInfoServiceImpl.class);

    @Autowired
    private OrgInfoRepository orgInfoRepository;

    @Override
    @Transactional
    public void updateBalance(String id, Integer money) {
        orgInfoRepository.updateBalance(id, money);
    }
}
